package com.enjoy.goal;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;

/**
 * goal的名称
 */
@Mojo(name = "enjoy")
public class EnjoyGoal extends AbstractMojo {

    @Parameter
    private String name;

    @Parameter
    private String describe;

    @Override
    public void execute() throws MojoExecutionException, MojoFailureException {
        getLog().info(String.format("enjoy name=%s,describe=%s", name, describe));
    }
}
